import request from '@/utils/request'

// 获取列表
export function getList(data) {
  return request({
    url: '/admin/member/getPage',
    method: 'post',
    data
  })
}

// 添加
export function addroles(data) {
  return request({
    url: '/admin/member/save',
    method: 'post',
    data
  })
}

// 禁用或启用
export function updateStart(data) {
  return request({
    url: '/admin/member/updateStart',
    method: 'post',
    data
  })
}

// 提交修改
export function sureEdit(params) {
  return request({
    url: 'https://easy-mock.com/mock/5a6be0721dfbfd52154f0763/example_copy/editpeople',
    method: 'post',
    params
  })
}

// 删除
export function shanchu(uuid) {
  return request({
    url: '/admin/member/delete',
    method: 'post',
    data: {
      uuid
    }
  })
}

